package atguigu03._extends.exer1;

/**
 * ClassName: KidsTest
 * Package: atguigu03._extends.exer1
 * Description:
 *      (3)定义类KidsTest，在类的main方法中实例化Kids的对象someKid，用该对象访问其父类的成员变量及方法。
 * @Author BuTang
 * @Create 2023/3/6 10:12
 * @Version 1.0
 */
public class KidsTest {
    public static void main(String[] args) {

        Kids someKid = new Kids(1,1,12);
        System.out.println(someKid.getYearsOld());
        System.out.println(someKid.sex);
        System.out.println(someKid.salary);
        System.out.println(someKid.getYearsOld());
    }

}
